const path = require("path");
const projectRoot = path.resolve(__dirname, "../");
module.exports = {
  configureWebpack: {
    module: {
      rules: [
        { test: /\.xml$/, loader: "xml-loader" } // will load all .xml files with xml-loader by default
      ]
    },
    resolve: {
      extensions: [".js", ".vue", ".css", ".json"],
      alias: {
        docs: path.resolve(__dirname, "./docs"),
        jquery: path.resolve(__dirname, "./node_modules/jquery/src/jquery"),
        package: path.resolve(__dirname, "./package.json"),
        src: path.resolve(__dirname, "./src"),
        assets: path.resolve(__dirname, "./src/assets"),
        components: path.resolve(__dirname, "./src/components"),
        views: path.resolve(__dirname, "./src/views"),
        utils: path.resolve(__dirname, "./src/utils"),
        store: path.resolve(__dirname, "./src/store"),
        mixins: path.resolve(__dirname, "./src/mixins"),
        "vuex-store": path.resolve(__dirname, "./src/store")
      }
    }
  }
};
